package models

import "time"

type Address struct {
	Province string `json:"province"`
	City     string `json:"city"`
	Detail   string `json:"detail"`
}

type Student struct {
	ID        string    `json:"id,omitempty"`
	Name      string    `json:"name" binding:"required"`
	Age       int       `json:"age" binding:"required,gte=0,lte=120"`
	Gender    string    `json:"gender" binding:"required,oneof=male female other"`
	Class     string    `json:"class" binding:"required"`
	Major     string    `json:"major" binding:"required"`
	Address   Address   `json:"address"`
	Phone     string    `json:"phone"`
	CreatedAt time.Time `json:"created_at,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}
